/**
 * 
 */
package com.chinasofti.project.service.user.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.chinasofti.project.dal.mapper.BzUserMapper;
import com.chinasofti.project.dal.model.BzUser;
import com.chinasofti.project.service.user.AddPaymentCodeService;

/**
 * @author liuji
 *
 */
@Service("addPaymentCodeService")
public class AddPaymentCodeServiceImpl implements AddPaymentCodeService {
	@Autowired
	public BzUserMapper bzUserMapper;

	@Override
	public BzUser verifyUser(int userId) {
		return bzUserMapper.selectByPrimaryKey(userId);
	}

	@Override
	public void setUserPayPassword(BzUser user) {
		System.out.println("进入更新数据库页面");
		bzUserMapper.updateByPrimaryKeySelective(user);
	}
}
